void debug(String text) { if (debugging) { System.err.println(text); } } ... debug("myMethod(" + arg + "): " + "state: " + s.toString());